
<?php include './application/views/top.php'; ?>
<script src="/static/js/gsdai.js"></script>
<script src="/static/js/ajaxfileupload.js"></script>
<script src="/static/js/My97DatePicker/WdatePicker.js"></script>
<script src="/static/js/formCheck.js"></script>

<div class="clear"></div>
<div class="user_bottom all"></div>
<div class="clear h50"></div>
<div class="layout uc">
	<?php include './application/views/user/left.php'; ?>
	<div class="right">
		<div class="menu_list"><?php include './application/views/user/menu.php'; ?></div>
		<div class="zhu">
			<div class="lef">
			<i><img src="/static/images/tj_bg.png" width="124" height="135"></i>
			</div>
			<div class="rig">
            	<div class="clear h20"></div>
				<span>您的邀请好友注册链接：</span><input class="p_button" type="button" style="width:90px;margin-top:5px;" value="复制" id="copy_button"/>
                <div class="clear h20"></div>
                <input id="txt_links" readonly class="kk" value="<?php echo 'http://'.$_SERVER['SERVER_NAME'].'/?invite='.$user['phone'];?>" type="text" />
                
                
			</div>
		</div>
        <form id="tmpform"></form>
        <div class="cont">
        	<ul class="tbt">
            	<li class="w118">用户名</li>
                <li class="w100">级别</li>
                <li class="w200">上级推荐人</li>
                <li class="w200 npr">注册时间</li>
                <li class="w150 npr">投资总金额</li>
                <li class="w150 npr">奖金总金额</li>
			</ul>
            <?php if($invite_user_list[0]['username'] != '') {foreach($invite_user_list as $val){?>
        	<ul class="tbc">
            	<li class="w118"><?php echo $val['username'];?></li>
                <li class="w100">一级</li>
            	<li class="w200"><?php echo $val['invite_userid']?$val['invite_username']:'';?></li>
                <li class="w200"><?php echo date('Y-m-d',$val['add_time']);?></li>
                <li class="w150"><?php echo $val['money'];?></li>
            	<li class="w150 npr"><?php echo $val['yiji_reward'];?></li>
			</ul>
            <?php }}?>
            <?php if($elist[0]['username'] !=  ''){foreach($elist as $val){?>
        	<ul class="tbc">
            	<li class="w118"><?php echo $val['username'];?></li>
                <li class="w100">顶级</li>
            	<li class="w200"><?php echo $val['invite_userid']?$val['invite_username']:'';?></li>
                <li class="w200"><?php echo date('Y-m-d',$val['add_time']);?></li>
                <li class="w150"><?php echo $val['money'];?></li>
            	<li class="w150 npr"><?php echo $val['dingji_reward'];?></li>
			</ul>
            <?php }}?>
		</div>
	</div>
</div>
<div class="clear h50"></div>
<?php include "./application/views/footer.php";?>
<script type="text/javascript" src="/static/js/ZeorClipboard/ZeroClipboard.js"></script>
<script type="text/javascript" src="/static/js/ZeorClipboard/mod_showcodes.js"></script>
<script type="text/javascript">
        var newTitle = '壹投资提醒您：';
        function copyToClipboard(obj) {
            if (obj) {
                var clipBoardContent = obj.value;
                $(obj).select();
                try {
                    window.clipboardData.setData("Text", clipBoardContent);
                   	alert('您好，链接复制成功!');
                }
                catch (e) {
                	alert('您好，链接复制失败，请手动复制!');
                }
            }
        }
    	function b(f) {
    		if(f){
    			alert('您好，链接复制失败，请手动复制!');
    		}else{
    			alert('您好，链接复制成功!');
    		}
    	}
        $(function() {
            $("#txt_links").click(function() { $(this).select(); });
        });
    	ZeroClipboard.setMoviePath("/static/js/ZeorClipboard/ZeroClipboard.swf");
        initClipBoard(1);
</script>